package com.menghanjun.mhjresourcesharing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.menghanjun.mhjresourcesharing.entity.TUser;
import com.menghanjun.mhjresourcesharing.utils.JsonResponseBody;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author menghanjun
 * @since 2023-08-11
 */
public interface ITUserService extends IService<TUser> {

    JsonResponseBody<?> addUser(TUser user);

    JsonResponseBody<?> deleteUser(long id);

    JsonResponseBody<?> getUserList(TUser user, int pageNo, int pageSize);

    JsonResponseBody<?> userLogin(TUser user);

    JsonResponseBody<?> getUserById(long userId);

    JsonResponseBody<?> exitLogin(long userId);

    JsonResponseBody<?> getUserByIdAdmin(long userId);

    JsonResponseBody<?> editUser(TUser user);

    JsonResponseBody<?> getUserCode(long userid, String email, String type);

    JsonResponseBody<?> editUserPassWord(long userid, int code, String password);

    JsonResponseBody<?> editUserEmail(long userid, int code, String email);

    boolean verifyAccountExpiration(String userid);
}
